package bolangit.test.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RentCarRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RentCarRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("start_time is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("start_time is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(Date value) {
            addCriterion("start_time =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(Date value) {
            addCriterion("start_time <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(Date value) {
            addCriterion("start_time >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("start_time >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(Date value) {
            addCriterion("start_time <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("start_time <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<Date> values) {
            addCriterion("start_time in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<Date> values) {
            addCriterion("start_time not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(Date value1, Date value2) {
            addCriterion("start_time between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("start_time not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartLocalIsNull() {
            addCriterion("start_local is null");
            return (Criteria) this;
        }

        public Criteria andStartLocalIsNotNull() {
            addCriterion("start_local is not null");
            return (Criteria) this;
        }

        public Criteria andStartLocalEqualTo(String value) {
            addCriterion("start_local =", value, "startLocal");
            return (Criteria) this;
        }

        public Criteria andStartLocalNotEqualTo(String value) {
            addCriterion("start_local <>", value, "startLocal");
            return (Criteria) this;
        }

        public Criteria andStartLocalGreaterThan(String value) {
            addCriterion("start_local >", value, "startLocal");
            return (Criteria) this;
        }

        public Criteria andStartLocalGreaterThanOrEqualTo(String value) {
            addCriterion("start_local >=", value, "startLocal");
            return (Criteria) this;
        }

        public Criteria andStartLocalLessThan(String value) {
            addCriterion("start_local <", value, "startLocal");
            return (Criteria) this;
        }

        public Criteria andStartLocalLessThanOrEqualTo(String value) {
            addCriterion("start_local <=", value, "startLocal");
            return (Criteria) this;
        }

        public Criteria andStartLocalLike(String value) {
            addCriterion("start_local like", value, "startLocal");
            return (Criteria) this;
        }

        public Criteria andStartLocalNotLike(String value) {
            addCriterion("start_local not like", value, "startLocal");
            return (Criteria) this;
        }

        public Criteria andStartLocalIn(List<String> values) {
            addCriterion("start_local in", values, "startLocal");
            return (Criteria) this;
        }

        public Criteria andStartLocalNotIn(List<String> values) {
            addCriterion("start_local not in", values, "startLocal");
            return (Criteria) this;
        }

        public Criteria andStartLocalBetween(String value1, String value2) {
            addCriterion("start_local between", value1, value2, "startLocal");
            return (Criteria) this;
        }

        public Criteria andStartLocalNotBetween(String value1, String value2) {
            addCriterion("start_local not between", value1, value2, "startLocal");
            return (Criteria) this;
        }

        public Criteria andCardNumIsNull() {
            addCriterion("card_num is null");
            return (Criteria) this;
        }

        public Criteria andCardNumIsNotNull() {
            addCriterion("card_num is not null");
            return (Criteria) this;
        }

        public Criteria andCardNumEqualTo(String value) {
            addCriterion("card_num =", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumNotEqualTo(String value) {
            addCriterion("card_num <>", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumGreaterThan(String value) {
            addCriterion("card_num >", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumGreaterThanOrEqualTo(String value) {
            addCriterion("card_num >=", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumLessThan(String value) {
            addCriterion("card_num <", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumLessThanOrEqualTo(String value) {
            addCriterion("card_num <=", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumLike(String value) {
            addCriterion("card_num like", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumNotLike(String value) {
            addCriterion("card_num not like", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumIn(List<String> values) {
            addCriterion("card_num in", values, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumNotIn(List<String> values) {
            addCriterion("card_num not in", values, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumBetween(String value1, String value2) {
            addCriterion("card_num between", value1, value2, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumNotBetween(String value1, String value2) {
            addCriterion("card_num not between", value1, value2, "cardNum");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterion("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterion("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterion("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterion("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterion("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterion("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterion("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndLocalIsNull() {
            addCriterion("end_local is null");
            return (Criteria) this;
        }

        public Criteria andEndLocalIsNotNull() {
            addCriterion("end_local is not null");
            return (Criteria) this;
        }

        public Criteria andEndLocalEqualTo(String value) {
            addCriterion("end_local =", value, "endLocal");
            return (Criteria) this;
        }

        public Criteria andEndLocalNotEqualTo(String value) {
            addCriterion("end_local <>", value, "endLocal");
            return (Criteria) this;
        }

        public Criteria andEndLocalGreaterThan(String value) {
            addCriterion("end_local >", value, "endLocal");
            return (Criteria) this;
        }

        public Criteria andEndLocalGreaterThanOrEqualTo(String value) {
            addCriterion("end_local >=", value, "endLocal");
            return (Criteria) this;
        }

        public Criteria andEndLocalLessThan(String value) {
            addCriterion("end_local <", value, "endLocal");
            return (Criteria) this;
        }

        public Criteria andEndLocalLessThanOrEqualTo(String value) {
            addCriterion("end_local <=", value, "endLocal");
            return (Criteria) this;
        }

        public Criteria andEndLocalLike(String value) {
            addCriterion("end_local like", value, "endLocal");
            return (Criteria) this;
        }

        public Criteria andEndLocalNotLike(String value) {
            addCriterion("end_local not like", value, "endLocal");
            return (Criteria) this;
        }

        public Criteria andEndLocalIn(List<String> values) {
            addCriterion("end_local in", values, "endLocal");
            return (Criteria) this;
        }

        public Criteria andEndLocalNotIn(List<String> values) {
            addCriterion("end_local not in", values, "endLocal");
            return (Criteria) this;
        }

        public Criteria andEndLocalBetween(String value1, String value2) {
            addCriterion("end_local between", value1, value2, "endLocal");
            return (Criteria) this;
        }

        public Criteria andEndLocalNotBetween(String value1, String value2) {
            addCriterion("end_local not between", value1, value2, "endLocal");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeIsNull() {
            addCriterion("record_start_time is null");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeIsNotNull() {
            addCriterion("record_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeEqualTo(Date value) {
            addCriterion("record_start_time =", value, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeNotEqualTo(Date value) {
            addCriterion("record_start_time <>", value, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeGreaterThan(Date value) {
            addCriterion("record_start_time >", value, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("record_start_time >=", value, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeLessThan(Date value) {
            addCriterion("record_start_time <", value, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("record_start_time <=", value, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeIn(List<Date> values) {
            addCriterion("record_start_time in", values, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeNotIn(List<Date> values) {
            addCriterion("record_start_time not in", values, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeBetween(Date value1, Date value2) {
            addCriterion("record_start_time between", value1, value2, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andRecordStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("record_start_time not between", value1, value2, "recordStartTime");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("create_user is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("create_user is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("create_user =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("create_user <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("create_user >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("create_user >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("create_user <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("create_user <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("create_user like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("create_user not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("create_user in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("create_user not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("create_user between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("create_user not between", value1, value2, "createUser");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}